﻿using Catchbase.TestTools;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Catchbase.Service.UTest
{
    [TestClass]
    public class CatchbasePathHelperTest
    {
        [TestMethod]
        public void LogonFilePath()
        {
            new CatchbasePathHelper("~/catcher/logon").FilePath.MustEqual("~/catcherservice.svc");
        }

        [TestMethod]
        public void LogonPathInfo()
        {
            new CatchbasePathHelper("~/catcher/logon").PathInfo.MustEqual("/catcher/logon");
        }

        [TestMethod]
        public void CatchlistFilePath()
        {
            new CatchbasePathHelper("~/catchlist").FilePath.MustEqual("~/catchlistservice.svc");
        }

        [TestMethod]
        public void CatchlistPathInfo()
        {
            new CatchbasePathHelper("~/catchlist").PathInfo.MustEqual("/catchlist");
        }

        [TestMethod]
        public void CatchFilePath()
        {
            new CatchbasePathHelper("~/catch").FilePath.MustEqual("~/catchservice.svc");
        }

        [TestMethod]
        public void CatchPathInfo()
        {
            new CatchbasePathHelper("~/catch").PathInfo.MustEqual("/catch");
        }

        [TestMethod]
        public void CatcherFilePath()
        {
            new CatchbasePathHelper("~/catcher/whatever").FilePath.MustEqual("~/catcherservice.svc");
        }

        [TestMethod]
        public void CatcherPathInfo()
        {
            new CatchbasePathHelper("~/catcher/whatever").PathInfo.MustEqual("/catcher/whatever");
        }
    }
}